import request from '@/utils/request';

//获得附件简历列表
export const getAttachment = (pageNum, pageSize) => {
    return request({
        url: '/resume/attachment/selectPage',
        method: 'POST',
        data: {
            pageNum,
            pageSize
        },
    })
}

//删除附件简历
export const delAttachment = (id) => {
    return request({
        url: `/resume/attachment/delete/${id}`,
        method: 'DELETE',
    })
}

//查询所有岗位
export const getjobPostings = (id, pageNum, pageSize) => {
    return request({
        url: `/jobPostings/job-postings/${id}?&pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET',
    })
}

//查询相似岗位
export const getselectSimilar = (id, pageNum, pageSize) => {
    return request({
        url: `/jobPostings/selectSimilar/${id}?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET',
    })
}

//查询相似岗位
export const getResume = (pageNum, pageSize) => {
    return request({
        url: `/resumeSubmit/selectResume?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET',
    })
}

//分页查询简历
export const getResumes = (pageNum, pageSize) => {
    return request({
        url: `/resume/recommendPage?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET',
    })
}

//学生修改企业邀请职位的投递情况
export const modResumeSubmit = (id, resumeId) => {
    return request({
        url: `/resumeSubmit/updateSubmit/${id}`,
        method: 'PUT',
        data: {
            resumeId: resumeId
        }
    })
}